package com.cj.allTest;

import com.google.common.collect.Lists;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.junit.Test;
import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Function;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

/**
 * @author chan
 * @dateTime 2023/1/3  18:03:55
 */
public class TestDesign {

    private static void method(Function<String, Integer> function, Function<Integer, Integer> function1) {
        int apply = function.andThen(function1).apply("10");
        System.out.println(apply + 20);
    }

    @Test
    public void method() {
        method(s -> Integer.parseInt(s) + 10, i -> i *= i);
    }
}
